//
//  ViewController.m
//  UI03_作业
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self createSubViews];
}
- (void)createSubViews{
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 30, ScreenWidth - 20, 60)];
    label.text = @"旷华军2014新专辑<<吉姆餐厅>>首发演唱会,北京站";
    label.font = [UIFont systemFontOfSize:20];
    label.numberOfLines = 0;
    [self.view addSubview:label];
    [label release];
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, label.frame.origin.y + label.frame.size.height + 10, 150, 250)];
    imageView.image = [UIImage imageNamed:@"屏幕快照 2016-06-07 下午5.38.38"];
    [self.view addSubview:imageView];
    [imageView release];
    
    UIImageView *dateImageView = [[UIImageView alloc] initWithFrame:CGRectMake(imageView.frame.origin.x + imageView.frame.size.width + 10, label.frame.origin.y + label.frame.size.height + 10, 20, 20)];
    dateImageView.image = [UIImage imageNamed:@"Unknown"];
    [self.view addSubview:dateImageView];
    [dateImageView release];
    
    UILabel *dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(dateImageView.frame.origin.x + dateImageView.frame.size.width + 5, dateImageView.frame.origin.y - 5, 200, 30)];
    dateLabel.text = @"10-19 18:00 -- 10-19 23:30";
    dateLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:dateLabel];
    [dateLabel release];
    
    UIImageView *nameImageView =[[UIImageView alloc] initWithFrame:CGRectMake(dateImageView.frame.origin.x, dateImageView.frame.origin.y + dateImageView.frame.size.height +40, 25, 25)];
    nameImageView.image = [UIImage imageNamed:@"Unknown-1"];
    [self.view addSubview:nameImageView];
    
    
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(nameImageView.frame.origin.x + nameImageView.frame.size.width +5, nameImageView.frame.origin.y - 3, 200, 30)];
    nameLabel.text = @"赵雷";
    nameLabel.font = [UIFont systemFontOfSize:15];
    [self.view addSubview:nameLabel];
    
    
    UIImageView *typeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(nameImageView.frame.origin.x , nameImageView.frame.origin.y + nameImageView.frame.size.height + 40, 25, 25)];
    typeImageView.image = [UIImage imageNamed:@"Unknown-3"];
    [self.view addSubview:typeImageView];
    
    
    UILabel *typeLabel = [[UILabel alloc] initWithFrame:CGRectMake(typeImageView.frame.origin.x + typeImageView.frame.size.width + 5, typeImageView.frame.origin.y - 3, 200, 30)];
    typeLabel.text = @"类型 : 音乐";
    [self.view addSubview:typeLabel];
    
    UIImageView *locationImageView = [[UIImageView alloc] initWithFrame:CGRectMake(typeImageView.frame.origin.x, typeImageView.frame.origin.y + typeImageView.frame.size.height + 40, 22, 22)];
    locationImageView.image = [UIImage imageNamed:@"Unknown-2"];
    [self.view addSubview:locationImageView];
    
    UILabel *locationLabel = [[UILabel alloc] initWithFrame:CGRectMake(locationImageView.frame.origin.x + locationImageView.frame.size.width + 5, locationImageView.frame.origin.y - 7, 200, 60)];
    locationLabel.text = @"北京 北京市东城区和平里西街79号糖果大楼三层";
    locationLabel.numberOfLines = 0;
    [self.view addSubview:locationLabel];
    
    UILabel *activityLabel = [[UILabel alloc] initWithFrame:CGRectMake(imageView.frame.origin.x, imageView.frame.origin.y + imageView.frame.size.height + 20, 100, 30)];
    activityLabel.font = [UIFont systemFontOfSize:22];
    activityLabel.text = @"活动介绍";
    [self.view addSubview:activityLabel];
    [activityLabel release];
    
    UILabel *specialLabel = [[UILabel alloc] initWithFrame:CGRectMake(activityLabel.frame.origin.x + 10, activityLabel.frame.origin.y + activityLabel.frame.size.height + 10, 300, 30)];
    specialLabel.text = @"[新专辑2014全国巡演合作咨询]";
    specialLabel.font = [UIFont systemFontOfSize:19];
    [self.view addSubview:specialLabel];
    [specialLabel release];
    
    UILabel *name1Label = [[UILabel alloc] initWithFrame:CGRectMake(activityLabel.frame.origin.x, specialLabel.frame.origin.y + specialLabel.frame.size.height + 5, 100, 30)];
    name1Label.text = @"@蒋步庭";
    [self.view addSubview:name1Label];
    [name1Label release];
    
    UILabel *weiboLabel = [[UILabel alloc] initWithFrame:CGRectMake(name1Label.frame.origin.x, name1Label.frame.origin.y + name1Label.frame.size.height + 5, 250, 30)];
    weiboLabel.text = @"http://weibo.com/jiangbuting";
    weiboLabel.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:weiboLabel];
    [weiboLabel release];
    
    UILabel *doubanLabel = [[UILabel alloc] initWithFrame:CGRectMake(weiboLabel.frame.origin.x, weiboLabel.frame.origin.y + weiboLabel.frame.size.height + 5, ScreenWidth, 30)];
    doubanLabel.text = @"http://www.douban.com/people/jiangjin/";
    
    [self.view addSubview:doubanLabel];
    [doubanLabel release];
    
    UILabel *qqLabel = [[UILabel alloc] initWithFrame:CGRectMake(doubanLabel.frame.origin.x, doubanLabel.frame.origin.y + doubanLabel.frame.size.height + 5, 200, 30)];
    qqLabel.text = @"QQ1193657158";
    [self.view addSubview:qqLabel];
    [qqLabel release];
    
    UILabel *mailLabel = [[UILabel alloc] initWithFrame:CGRectMake(qqLabel.frame.origin.x, qqLabel.frame.origin.y + qqLabel.frame.size.height + 5, 200, 30)];
    mailLabel.text = @"邮箱1193657158";
    [self.view addSubview:mailLabel];
    [mailLabel release];
    
    UILabel *phoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(mailLabel.frame.origin.x, mailLabel.frame.origin.y +mailLabel.frame.size.height + 5, 200, 30)];
    phoneLabel.text = @"手机18610967776";
    [self.view addSubview:phoneLabel];
    [phoneLabel release];
    
    UILabel *groupLabel = [[UILabel alloc] initWithFrame:CGRectMake(phoneLabel.frame.origin.x + 5, phoneLabel.frame.origin.y + phoneLabel.frame.size.height + 2, 250, 30)];
    groupLabel.text = @"[赵雷巡演两千人群241855614]";
    groupLabel.font = [UIFont systemFontOfSize:18];
    [self.view addSubview:groupLabel];
    
    
    UILabel *groupLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(groupLabel.frame.origin.x, groupLabel.frame.origin.y + groupLabel.frame.size.height + 5, 300, 30)];
    groupLabel1.font = [UIFont systemFontOfSize:18];
    groupLabel1.text = @"[赵雷歌迷北京活动群189347699]";
    [self.view addSubview:groupLabel1];
    [groupLabel1 release];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
